<template>
	<div class="bg-blue-furn" style="height: calc(100vh - 448px);">
		<!-- 实绩发送 -->
		<!-- 铸坯实绩 -->
		<pol-table ref="polTableRef" v-bind="tableOpt" height="calc(100vh - 448px)">
			<template #feipeizhongliang="{row}">
				<span class="text-green2 cursor">{{row.ItemName === '未发送' ? '发送' : '重发'}}</span>
			</template>
		</pol-table>
	</div>
</template>

<script setup>
	import { ref } from 'vue';

	const polTableRef = ref(null); //表格ref
	//表格配置
	const columns = ref([
		{ label: '实绩名称', key: 'ItemCode', align: 'center' },
		{ label: '发送状态', key: 'ItemName', align: 'center' },
		{ label: '操作', key: 'feipeizhongliang', align: 'center', width: '150', slot: true },
	]);

	//表格配置
	const tableOpt = ref({
		columns: columns.value,
		localData: [{
			ItemCode: '炉次实绩状态-“到达受包位”',
			ItemName: '已发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“到达浇注位"',
			ItemName: '已发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“水口打开”',
			ItemName: '已发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“浇注完成”',
			ItemName: '已发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“钢包吊走”',
			ItemName: '已发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“切割完成”',
			ItemName: '已发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“开浇炉”',
			ItemName: '已发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“炉次生产实绩”',
			ItemName: '未发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“炉次铸流实绩”',
			ItemName: '未发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“炉次出坏实绩”',
			ItemName: '未发送',
		}, 
		{
			ItemCode: '炉次实绩状态-“炉次消耗实绩”',
			ItemName: '未发送',
		}, 
		]
	});
</script>

<style lang="scss" scoped>

</style>